package com.codebo.homiematchbackend.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.codebo.homiematchbackend.model.dto.team.JoinTeamRequest;
import com.codebo.homiematchbackend.model.dto.team.TeamAddRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codebo.homiematchbackend.model.dto.team.TeamQueryRequest;
import com.codebo.homiematchbackend.model.dto.user.UserQueryRequest;
import com.codebo.homiematchbackend.model.entity.Team;
import com.codebo.homiematchbackend.model.entity.User;
import com.codebo.homiematchbackend.model.vo.TeamVO;
import org.springframework.web.multipart.MultipartFile;

import jakarta.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 25912
* @description 针对表【team(队伍信息)】的数据库操作Service
* @createDate 2025-09-14 16:49:16
*/
public interface TeamService extends IService<Team> {

    long addTeam(MultipartFile multipartFile, TeamAddRequest teamAddRequest, User loginUser);

    boolean joinTeam(JoinTeamRequest joinTeamRequest);

    List<TeamVO> listTeamByRecommend(HttpServletRequest httpServletRequest, TeamQueryRequest teamQueryRequest);
    //---------------------------------------------------------

    TeamVO getTeamVO(Team team);
    QueryWrapper<Team> getQueryWrapper(TeamQueryRequest teamQueryRequest);

    List<TeamVO> getTeamVOList(List<Team> teams);



}
